<?php
require_once './database/connection.php';
require_once './database/articles.php';
$obj = new articles();
$data = $obj->view_more();
?>
<div id="content">
    <?php foreach ($data as $dulieu) { ?>
        <div class="post">
            <h1 class="title"><a href="<?php echo "index1.php?view=".$dulieu['id'];?>"><?php echo $dulieu['title']; ?></a></h1>
            <p class="meta"><small><?php echo date('d-m-y') . ' '; ?><a href="#">Dung</a></small></p>
            <div class="entry">
                <p><?php echo $dulieu['body']; ?></p>
            </div>

        </div>
    <?php } ?>
</div>

